﻿<%@ Control Language="C#" ClassName="ChietKhauFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Chiet Khau Id:</td>
				<td>
					<asp:HiddenField runat="server" id="dataChietKhauId" Value='<%# Bind("ChietKhauId") %>'></asp:HiddenField>
				</td>
			</tr>				
			<tr>
				<td class="literal">Start Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataStartDate" Text='<%# Bind("StartDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataStartDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataStartDate" runat="server" Display="Dynamic" ControlToValidate="dataStartDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">End Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataEndDate" Text='<%# Bind("EndDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataEndDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>				
			<tr>
				<td class="literal">Dieu Kien Giam Gia Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataDieuKienGiamGiaId" DataSourceID="DieuKienGiamGiaIdDieuKienGiamGiaDataSource" DataTextField="DieuKienChung" DataValueField="DieuKienId" SelectedValue='<%# Bind("DieuKienGiamGiaId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:DieuKienGiamGiaDataSource ID="DieuKienGiamGiaIdDieuKienGiamGiaDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Ghi Chu:</td>
				<td>
					<asp:TextBox runat="server" ID="dataGhiChu" Text='<%# Bind("GhiChu") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Last Update:</td>
				<td>
					<asp:TextBox runat="server" ID="dataLastUpdate" Text='<%# Bind("LastUpdate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataLastUpdate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataLastUpdate" runat="server" Display="Dynamic" ControlToValidate="dataLastUpdate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Update By:</td>
				<td>
					<asp:TextBox runat="server" ID="dataUpdateBy" Text='<%# Bind("UpdateBy") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataUpdateBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdateBy" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Header:</td>
				<td>
					<asp:TextBox runat="server" ID="dataHeader" Text='<%# Bind("Header") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataHeader" runat="server" Display="Dynamic" ControlToValidate="dataHeader" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Nhom Khach Hang Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataNhomKhachHangId" DataSourceID="NhomKhachHangIdNhomKhachHangDataSource" DataTextField="KhachHangId" DataValueField="NhomKhachHangId" SelectedValue='<%# Bind("NhomKhachHangId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:NhomKhachHangDataSource ID="NhomKhachHangIdNhomKhachHangDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


